package com.heima.user.dto;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 身份证二要素验,身份证OCR,活体检测,人证核验
 */
@Data
public class CertificationToReturn {
    String success;
    String message; //返回消息
    Map<String,String> data;
    String code;  //响应code码。200000：成功，其他失败。请对照状态码


    /*
    身份证二要素验:
    {
        "success": true,
           "code": 400100,
        "message": "成功"
    }*/


    /*
    身份证OCR:
    反面：
    {
    "message": "成功",
       "data": {
                  "tradeNo": "21101118122147666",
                     "code": "0",
                 "riskType": "normal",
              "issuingDate": "20170112",
         "issuingAuthority": "三亚市公安局",
               "expiryDate": "20270112"
    },
       "code": "601200000"
    }

    正面：
    {
        message: "成功",
        data: {
             tradeNo: "18061216445335807",
            riskType: "normal",
             address: "江西省**********************************",
               birth: "19*****6",
                name: "***",
             cardNum: "360***************",
                 sex: "男",
              nation: "汉",
                code: "0"
        },
        code: "601200000"
        }

    */



   /*
   活体检测:
   {
        message: "成功",
           data: {
            checkStatus: "1",
                  score: "100",
                tradeNo: "19082609521047171",
                 remark: "检测成功",
                   code: "0" \\活体检测返回码，0表示成功，其他为失败
    }
           code: "601200000"
    }*/



    /*
    人证核验:
    {
        message: "成功",
           data: {
            tradeNo: "19082610582187514",
              score: "83.28909302", \\活体检测的分值，大于87分可判断为活体
             remark: "比对成功", \\检测结果说明
               code: "0"  \\活体检测返回码，0表示成功，其他为失败
    }
           code: "601200000" \\响应code码。200000：成功，其他失败。请对照状态码
    }*/


}
